package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

public class AdminUserDTO extends Object implements IsSerializable {

	private long id;
	private String login;
	private String password;

	public AdminUserDTO() {}
	
	public AdminUserDTO(String login, String password) {
		this.login = login;
		this.password = password;
	}
	public long getId() {
		return id;
	}
	protected void setId(long id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String toString() {
		String result = "" +
			"[ " + AdminUserDTO.class + "]" +
			"login: " + login + 
			", password: " + password;
		return result;
	}
	
	public String toLabel() {
		String r = login + ", " + password;
		return r;
	}
	
}
